using System;

namespace Qplus.protocol
{
    /**
     * 
     * 接收语音数据通知
     *
     */
    public class U2C_NOTIFY_CHAT_VOICEDATA : InPacket{

	    private long appID;
	
	    private long sessionID;
	
	    private byte[] voiceData;
	
	    private int frames;
	
	    protected override void parseBody(byte[] data, int offset, int count) {
		    appID = get4(data);
		    sessionID = get4(data);
		    frames = get1(data);
		    int leng = get1(data);
		    voiceData = getN(data, leng);
	    }

	    public long getAppID() {
		    return appID;
	    }

	    public void setAppID(long appID) {
		    this.appID = appID;
	    }

	    public long getSessionID() {
		    return sessionID;
	    }

	    public void setSessionID(long sessionID) {
		    this.sessionID = sessionID;
	    }

	    public byte[] getVoiceData() {
		    return voiceData;
	    }

	    public void setVoiceData(byte[] voiceData) {
		    this.voiceData = voiceData;
	    }

    //	kal_uint32 appID; 应用ID
    //	kal_uint8 sessionID; 会话ID
    //	kal_uint8 dataLen; 数据长度
    //	kal_uint8 data[];数据
	
	    public int getFrames() {
		    return frames;
	    }

	    public void setFrames(int frames) {
		    this.frames = frames;
	    }

	}
}
